package com.kuang.demo.mapper;

import com.kuang.demo.bo.gh.QueryOrderListBO;
import com.kuang.demo.bo.gh.ShipOrderBO;
import com.kuang.demo.vo.OrderDetailVO;
import com.kuang.demo.vo.QueryOrderListVO;
import com.kuang.demo.vo.wx.Order4DetailVo;
import com.kuang.demo.vo.wx.Order4ListVo;
import org.apache.ibatis.annotations.Param;

import java.util.List;

/**
 * Created by 郭浩 on 2020/11/2 22:15
 */
public interface OrderMapper {


    List<QueryOrderListVO.ItemsBean> queryOrderList(@Param("queryOrderListBO") QueryOrderListBO queryOrderListBO);

    List<OrderDetailVO.OrderGoodsBean> queryOrderGoodsBy(@Param("id") Integer id);

    OrderDetailVO.OrderBean queryOrderById(@Param("id") Integer id);

    OrderDetailVO.UserBean queryUserInfoById(@Param("userId") int userId);

    void shipOrder(@Param("shipOrderBO") ShipOrderBO shipOrderBO);

    List<Order4ListVo> queryOrderListByUserId(@Param("userId")int userId,@Param("showType") int showType);

    Order4DetailVo queryOrderDetailById(@Param("orderId") Integer orderId);

    void cancelOrderById(@Param("orderId") Integer orderId);

    void refundOrderById(@Param("orderId") int orderId);

    void deleteOrderById(int orderId);

    void confirmOrderById(int orderId);

    void prepay(Integer orderId);
}
